package cn.lanqiao.facelogin.service;

import cn.lanqiao.facelogin.domain.JsonResult;
import cn.lanqiao.facelogin.domain.LoginData;
import cn.lanqiao.facelogin.domain.Result;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Heroleaves
 */
@Repository
public interface LoginService extends IService<LoginData> {
    boolean addFaceId(String faceToken, String timestamp);

    boolean telQuery(String phone);

    Result saveThePhoneNumber(String tel, String telCode);

    Result sendTheVerificationCode(String phone);

    Result faceDataUpdate(String imgData, LoginData loginData) throws Exception;

    Result queryFaceToken(String phone);

    Result facelogin(JsonResult jsonResult);

    Result findTokenId(String tokenId);

    Result addTokenId(String tokenId, String name);

    Result giteeSave(String tel, String telCode, String uName, String tokenId);

    String findTokenIdTel(String tokenId);

    Result faceUpdate(String base64, String tel) throws Exception;
//    @RequestMapping("/modifyFaceData")
//    default boolean modifyFaceData(String imgData){
//        System.out.println( imgData);
//        return false;
//    }


}
